package com.wss.day01;

/**
 * @author wangshaoshuai
 * @desc Emperor
 * @date 2025/4/21
 */
public class Emperor {
    private String name;
    private  int year;
    private String record;
    private String describe;


    public Emperor() {
    }

    public Emperor(String name, int year, String record, String describe) {
        this.name = name;
        this.year = year;
        this.record = record;
        this.describe = describe;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }


    public String getRecord() {
        return record;
    }


    public void setRecord(String record) {
        this.record = record;
    }


    public String getDescribe() {
        return describe;
    }


    public void setDescribe(String describe) {
        this.describe = describe;
    }
    public void show() {
        System.out.println("姓名："+name+"  在位时间："+year+"  政绩"+record+"  描述"+describe);
    }

}


